<?php
namespace Home\Controller;
use Home\Controller\CommonController;
class TiyanController extends CommonController {

    /**
      +----------------------------------------------------------
     * 首页
     *
      +----------------------------------------------------------
     */
    public function index() {
  
     

    $this->display(); // 输出模板
    }

    public function kuanshi() {
         $id=I('get.ksid');
         if(!empty($id)){
        $kuanshi=M('kuanshi')->where(array('id'=>$id))->find();
        $shangpin=M('shangpin')->where(array('kuanshi'=>$kuanshi['ks_name']))->order('id desc')->select();

}
$this->assign('empty','<div class="myorder-none" style="margin-top: 24%;margin-bottom:30%"><i class="icon-none" style="display: block;
    width: 100px;
    height: 100px;
    background: url(App/Home/View/Public/images/wap_nodata.png) no-repeat;
    background-size: 100%;
    margin-top: 20%;margin: auto;"></i><span class="none_01" style="color: #939393;
    font-size: 16px;
    line-height: 24px;display: block;
    text-align: center;">Sorry!没有找到相关的商品...</span></div>');
  $this->assign("shangpin",$shangpin);

    $this->display(); // 输出模板
    }




 





}
 
?>